package crosstime.android.widget;

import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.widget.HorizontalScrollView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import crosstime.android.cexplorer.R;

public abstract class BaseToolBarWidget extends RelativeLayout {
	protected Context mContext = null;
	protected LayoutInflater mInflater = null;
	protected HorizontalScrollView mScrollView = null;
	protected LinearLayout mContentLayout = null;
	
	public BaseToolBarWidget(Context context, AttributeSet attrs) {
		super(context, attrs);
		mContext = context;
		initView();
	}
	public BaseToolBarWidget(Context context) {
		super(context);
		mContext = context;
		initView();
	}
	
	private void initView(){
		mInflater = LayoutInflater.from(mContext);
		mScrollView = (HorizontalScrollView) mInflater.inflate(R.layout.tool_bar, null);
		mContentLayout = (LinearLayout) mScrollView.findViewById(R.id.bar_layout);
//		initSelfView();
		this.addView(mScrollView);
	}

//	protected abstract void initSelfView();
}
